<?php
//error_reporting(E_ALL ^ E_NOTICE);
header('Content-Type:text/html;charset=utf-8');
$url="http://h5.cyol.com/special/weixin/sign.json";//青年大学习json接口，返回所有大学习地址
$data = file_get_contents($url);
$durl = str_replace('\/','/',$data);
preg_match_all('/h5.cyol.com\/special\/daxuexi(.*)m.html/isU',$durl,$newurl);
$mun= count($newurl[0]);
$durl = str_replace('m.html','images/end.jpg',$newurl[0][$mun-2]);
//获取title
$dijia = file_get_contents('https://'.$newurl[0][$mun-2]);
preg_match("/<title>(.*)<\/title>/i",$dijia,$newurl);
?>
<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title><?php echo $newurl[1] ?></title>
		<link rel="shortcut icon" href="//q1.qlogo.cn/g?b=qq&nk=1013138336&s=640" />
		<style>
		    html,body{
		        width: 100%;
		        height: 100%;
		        margin: 0px;
		        padding: 0px;
		    }
		</style>
</head>
	<body >
		<img width="100%" height="100%" src="<?php echo 'https://'.$durl;?>" >
		<div class="web_notice" style="position: fixed;top: 0;left: 0;width: 100%;height: 100%;background: rgba(0,0,0,0.3);z-index: 99999;">
<div style="position: fixed;top: 50%;left: 50%;width: 550px;background: #FFF;transform: translate(-50%, -50%);border-radius: 40px;padding: 50px 40px;">
            <h3 style="font-weight: bold;text-align: center;font-size: 30px;">网站通知</h3>
            <div style="font-size: 16px;margin-top: 26px;line-height: 30px;color: #999;">青年小学习，公众号进入视频页面后台就有数据了！无需看视频，一秒解决问题，有积分有观看记录就可以了。下面把完成截图送给你,全自动更新、秦天出品必是精品！</div><a style="display: block;background: #98a3ff;color:#FFF;text-align: center;font-weight: bold;font-size: 19px;line-height: 60px;margin: 0 auto;margin-top: 45px;border-radius: 32px;width: 80%;" onclick="javascript:document.querySelector('.web_notice').remove()">我知道了</a>
    </div>
</div>
<script>
    console.log('\n' + ' %c 青年小学习 %c http://chulian.baozi66.top:99 初恋云网络 ' + '\n', 'color: #fadfa3; background: #030307; padding:5px 0;', 'background: #fadfa3; padding:5px 0;; padding:5px 0');
</script>
	</body>
</html>